import http from "@/api";

import { ModuleFlexJobUrl, ModuleCommonUrl } from "..";
import { AbnormalEntity } from "@/biz/interface/modules/AbnormalType";

const moduleUrl = ModuleFlexJobUrl;
const commModuleUrl = ModuleCommonUrl;

// /* 新增接口
export const saveFlexjobAbnormalApi = (params: {}) => {
  return http.post(moduleUrl + `/abnormalapi/jobabnormal`, params);
};

// * 详情接口
export const getAbnormalInfoApi = (params: { jobId: string }) => {
  return http.post<AbnormalEntity>(moduleUrl + `/abnormalapi/jobabnormalinfo`, params);
};

// * 获取异议的类型
export const getFlexjobAbnormalTypesApi = () => {
  return http.post(commModuleUrl + `/comapi/dictionary`, {tbName: "flexjob",colName: "abnormal"});
};


